<?php

use Drupal\shusy_store\Entity\ShusyStore;

function shusy_store_shusy_store_add_page() {
  $e = new ShusyStore();
  module_load_include('inc', 'shusy_store', 'shusy_store.forms');
  return drupal_get_form('shusy_store_shusy_store_entity_form', $e, 'add');
}

function shusy_store_shusy_store_view_page(ShusyStore $e) {
  return entity_view($e->entityType(), [$e]);
}
function shusy_store_shusy_store_edit_page(ShusyStore $e) {
  module_load_include('inc', 'shusy_store', 'shusy_store.forms');
  return drupal_get_form('shusy_store_shusy_store_entity_form', $e, 'edit');
}

function shusy_store_shusy_store_delete_page(ShusyStore $e) {
  module_load_include('inc', 'shusy_store', 'shusy_store.forms');
  return drupal_get_form('shusy_store_shusy_store_delete_form', $e);
}

